package com.cskaoyan.service;

import com.cskaoyan.dao.OrderDao;
import com.cskaoyan.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author stone
 * @date 2022/08/29 14:48
 */
@Service
public class GoodsServiceImpl implements GoodsService{
    @Autowired
    OrderDao orderDao;
    @Autowired
    @Qualifier("userDaoImpl1")
    UserDao userDao1;
    @Resource(name = "userDaoImpl2") //默认是按照类型注入的，指定组件id使用其name属性
    UserDao userDao2;
}
